/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package batailledesardennes.game.map;

import batailledesardennes.util.geomFloat.path.NodeHandler;
import batailledesardennes.util.geomFloat.path.Obstacle;
import batailledesardennes.util.geomFloat.path.PathFinder;
import java.util.List;

/**
 *
 * @author cghislai
 */
public class MapAccessHandler {

    private NodeHandler nodeHandler;
    private PathFinder pathFinder;

    public MapAccessHandler() {
        nodeHandler = new NodeHandler();
        nodeHandler.setMaxConnectionDistance(1500);
        pathFinder = new PathFinder();
        pathFinder.setNodeHandler(nodeHandler);
    }

    public NodeHandler getNodeHandler() {
        return nodeHandler;
    }

    public PathFinder getPathFinder() {
        return pathFinder;
    }

    public List<Obstacle> getObstacles() {
        return nodeHandler.getObstacles();
    }
}
